import { Global, Module } from '@nestjs/common';
import { AllDecoratorService } from './all-decorator.service';
import { AllDecoratorController } from './all-decorator.controller';

// @Global()
@Module({
  controllers: [AllDecoratorController],
  providers: [
    AllDecoratorService,
    {
      provide: 'huan',
      useFactory() {
        return {
          name: 'huan',
        };
      },
    },
  ],
  exports: [AllDecoratorService],
})
export class AllDecoratorModule {}
